package com.phonepn.mymall.goods.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 读取配置中心内容
 *
 * @author quifar
 */
@ConfigurationProperties(prefix = "spring.datasource")
@Configuration
@Data
public class DatasourceBean {

    private String driverClassName;
    private String url;
    private String username;
    private String password;

}
